<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
  //import jwt_decode from 'jwt-decode'
  export default {
    name:"App",
    // methods:{
    //   isEmpty(value) {
    //     return (
    //       value === undefined || value === null || (typeof value === 'object' && Object.keys(value).length === 0)
    //       || (typeof value === 'string' && value.trim().length === 0)
    //     )
    //   }
    // }
  }
  
  window.onload = function() {
  	document.addEventListener('touchstart', function(event) {
  		if (event.touches.length > 1) { 
  			event.preventDefault(); 
  		} 
  	});
  	//阻止双指放大 
  	document.addEventListener('gesturestart', function(event) { 
  		event.preventDefault(); 
  	}); 
  	
  	//阻止双击放大
  	var lastTouchEnd = 0;
  	document.addEventListener('touchend', function(event) { 
  		var now = (new Date()).getTime(); if (now - lastTouchEnd <= 300) {
  			event.preventDefault(); 
  		}
  		lastTouchEnd = now;
  	 }, false); 
  }
</script>